﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjetSMA.Model
{
    public class Rock : Element
    {
        public Rock(int i, int j, string par_name)
            : base(i, j, par_name)
        {

        }

        public void InitialisationRocks(int par_rdm, int par_i, int par_j, string par_name)
        {
            
            switch (par_rdm)
            {
                case 0: this.m_north = new Rock(par_i, par_j, par_name); break;
                case 1: this.m_north_east = new Rock(par_i, par_j, par_name); break;
                case 2: this.m_east = new Rock(par_i, par_j, par_name); break;
                case 3: this.m_south_east = new Rock(par_i, par_j, par_name); break;

                case 4: this.m_south = new Rock(par_i, par_j, par_name); break;
                case 5: this.m_south_west = new Rock(par_i, par_j, par_name); break;
                case 6: this.m_west = new Rock(par_i, par_j, par_name); break;
                case 7: this.m_north_west = new Rock(par_i, par_j, par_name); break;
            }
        }
    }
}
